package com.sunlake.spring.main.model.counselor.controller;

import com.sunlake.spring.main.common.response.R;
import com.sunlake.spring.main.common.utils.LoggerUtil;
import com.sunlake.spring.main.model.counselor.dto.ListRecentDTO;
import com.sunlake.spring.main.model.counselor.dto.ResumeMergeDTO;
import com.sunlake.spring.main.model.counselor.service.CounselorApplyService;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/api/counselor/apply") // 添加/api前缀
public class CounselorApplyController {

    private static final Logger log = LoggerUtil.getLogger(CounselorApplyController.class);

    @Autowired
    private CounselorApplyService counselorApplyService;


    @PostMapping("/resumes")
    public R<Map<String, Object>> getResumesByEmail(@RequestBody ListRecentDTO listRecentDTO) {
        log.debug("getResumesByEmail payload: {}", listRecentDTO);
        return counselorApplyService.getResumesByEmail(listRecentDTO);
    }

}